package nuc.ss.wl.service.impl;

import nuc.ss.wl.dao.Special_SituationDao;
import nuc.ss.wl.dao.impl.Special_SituationDaoImpl;
import nuc.ss.wl.entity.Special_Situation;
import nuc.ss.wl.service.Special_SituationService;

import java.util.List;

public class Special_SituationServiceImpl implements Special_SituationService {

    private Special_SituationDao special_situationDao = new Special_SituationDaoImpl();
    @Override
    public int add(Special_Situation special_situation) {
        return this.special_situationDao.save(special_situation);
    }

    @Override
    public int delete(int sno) {
        return this.special_situationDao.delete(sno);
    }

    @Override
    public int update(Special_Situation special_situation) {
        return this.special_situationDao.update(special_situation);
    }

    @Override
    public List<Special_Situation> findAll() {
        return this.special_situationDao.findAll();
    }

    @Override
    public List<Special_Situation> find(int sno, String type) {
        return special_situationDao.find(sno, type);
    }

    @Override
    public Special_Situation findBySno(int sno) {
        return special_situationDao.findBySno(sno);
    }
}
